<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var arr = [1,3,5,7];

    // reverse  实现 数组的 翻转
    // reverse 方法会改变原数组
    // 返回值是翻转后的数组

    console.log(arr.reverse());
    console.log(arr);
  </script>
</body>
</html>